package spotGUI.GUIElements.MarkerGUI;

import java.awt.Cursor;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

public class StarMarkerPanel extends JPanel {
	
	private int mark = 0;
	
	
	public StarMarkerPanel() {
		
		JPanel stars = new JPanel();
		setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		stars.setLayout(new BoxLayout(stars, BoxLayout.X_AXIS));

		StarButton previous = null;
		for (int i = 1; i <= 5; i++) {
			StarButton temp = new StarButton (previous, i, this);
			temp.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
			stars.add (temp);
			previous = temp;
		}
		
		add(stars);
	}
	
	protected void setCurrentMark (int mark) {
		this.mark = mark;
	}
	
	public int getMark () {
		return mark;
	}

}

